package com.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blog.entity.ArticleComment;

import java.util.List;
import java.util.Map;

/**
 * @author gxcc
 * @create 2021/11/13 18:07
 */
public interface ArticleCommentMapper extends BaseMapper<ArticleComment> {

    /**
     * 查询评论信息通过博客id
     * @param articleId
     * @return 
     */
    List<Map<String, Object>> queryCommentById(String articleId);

    /**
     * 查询评论信息列表(后台表格)
     * @param
     * @return
     */
    List<Map<String,Object>> queryCommentInfo();

    /**
     * 后台搜索表格重载
     * @param comment
     * @return username
     */
    List<Map<String, Object>> queryCommentByCondition(String comment, String username);
}
